<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //1.Object.is 判断两个值是否全等
        console.log(Object.is(120, 120)); //true  相当于===，唯一的区别就是使用.Object.is来判断NaN的话，也会返回true，
        //2.Object.assign 对象合并
        const con1 = {
            a: 'a',
            b: 'b',
            c1: 'c1'
        }
        const con2 = {
            a: 'aa',
            b: 'bb',
            c2: 'c2'
        }
        console.log(Object.assign(con1, con2));
        /*
            Object
                a: "aa"
                b: "bb"
                c1: "c1"
                c2: "c2"
        */
    </script>
</body>

</html>